import Vue from 'vue'
import Router from 'vue-router';
import Ceneter from "../views/Ceneter";
import Cinema from "../views/Cinema";
import Tabbar from "../components/Tabbar";
import Film from "../views/Film";
import Narber from "../components/Narber";
import Sideber from "../components/Sideber";
import wrr from "../views/Film/wrr";
import ddp from "../views/Film/ddp";
import sida from "../components/sid/sida";
import sidb from "../components/sid/sidb";
import Detail from "../views/Detail";
import box from "../views/box";
import comingsoon from "../views/Film/comingsoon";

Vue.use(Router)
export default new Router({
  routes: [
    {
      path:'/box',
      components:box
    },
    {
     path:'/Narber',
     component:Narber,
      children:[
        {
          path:'/Sideber',
          component:Sideber,

        }
      ]
    },

    {
      path:'/sida',
      component:sida,
      children:[
        {
          path:'/sida/ddp',
          component:ddp
        }
      ]

    },
    {
      path:'/sidb',
      component:sidb,
      children:[
        {
          path:'/sidb/comingsoon',
          component:comingsoon
        },
      ]
    },
    {
      path: '/Film',
      component:Film,
    },
    {
      path:'/Cinema',
      component:Cinema,
    },
    {
      path: '/Ceneter',
      component:Ceneter,
    },
    {
      path: '/Tabbar',
      component:Tabbar
    },
    {
      path:'/Detail',
      name:'Detail',
      component:Detail
    },

    {
    path:'*',
      redirect:'/sida/ddp'
    }

  ]
})
